$(function() {
//   initModalGroupTree();
   $("#meetingroom-move .btn-save").click(function() {
       var selectedNode = $('#dialog-group-tree').jstree('get_selected');
       var ids=$("#ids").val();
       $.post(ctx + "meetingroom/move",{"groupId": parseInt(selectedNode, 10),"ids":ids}, function(r) {
           if (r.code === 0) {
               $MB.closeAndRestModal("meetingroom-move");
               $MB.n_success(r.msg);
               $MB.refreshTable("meetingRoomTable");
           } else $MB.n_danger(r.msg);
       });

   });

   $("#meetingroom-move .btn-close").click(function() {
       $MB.closeAndRestModal("meetingroom-move");
   });
});

